package com.jiegui.business.service.impl;

import java.util.List;
import com.jiegui.common.utils.DateUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.jiegui.business.mapper.NewsInfoMapper;
import com.jiegui.business.domain.NewsInfo;
import com.jiegui.business.service.NewsInfoService;

/**
 * 资讯列Service业务层处理
 * 
 * @author wuqicheng
 * @date 2024-11-20
 */
@Service
public class NewsInfoServiceImpl extends ServiceImpl<NewsInfoMapper, NewsInfo> implements NewsInfoService
{
    @Resource
    private NewsInfoMapper newsInfoMapper;

    /**
     * 查询资讯列
     * 
     * @param id 资讯列主键
     * @return 资讯列
     */
    @Override
     public NewsInfo selectNewsInfoById(String id)
    {
        return newsInfoMapper.selectById(id);
    }

    /**
     * 查询资讯列列表
     * 
     * @param newsInfo 资讯列
     * @return 资讯列
     */
    @Override
    public List<NewsInfo> selectNewsInfoList(NewsInfo newsInfo)
    {
        return newsInfoMapper.selectNewsInfoList(newsInfo);
    }

    /**
     * 新增资讯列
     * 
     * @param newsInfo 资讯列
     * @return 结果
     */
    @Override
    public  int insertNewsInfo(NewsInfo newsInfo)
    {
        return newsInfoMapper.insert(newsInfo);
    }

    /**
     * 修改资讯列
     * 
     * @param newsInfo 资讯列
     * @return 结果
     */
    @Override
    public  int updateNewsInfo(NewsInfo newsInfo)
    {

        return newsInfoMapper.updateById(newsInfo);
    }




}
